package com.sixth.controller;

import com.sixth.bean.common.BasePageInfo;
import com.sixth.bean.common.BaseRespVo;
import com.sixth.service.AdminRegionService;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AdminRegionController
 * @Description TODO
 * @Author XiaoWJ
 * @Date 2022/9/7 22:55
 **/
@RestController
@RequestMapping("admin/region")
public class AdminRegionController {

    @Autowired
    AdminRegionService adminRegionService;


    /**
     * @Param  行政区域的查询
     * @Return BaseRespVo
     * @author XiaoWJ
     * @date   2022/9/8 8:56
     */
    //@RequiresPermissions(value = {"admin:region:list"},logical = Logical.OR)
    @RequestMapping("list")
    public BaseRespVo list(){
        Object result = adminRegionService.list();
        return BaseRespVo.ok(result);
    }

}
